package com.huawei.gzq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {
    @RequestMapping("/")
    public String home(Model model) {
        model.addAttribute("hint1", "This is home page.");
        model.addAttribute("hint2", "HOME: localhost:8888");
        model.addAttribute("hint3", "SELECT: localhost:8888/user/all");
        model.addAttribute("hint4", "SELECT: localhost:8888/user/find?id=1");
        model.addAttribute("hint5", "INSERT: localhost:8888/user/add?id=6");
        return "index";
    }
}
